home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / include / fcntl.h < prev    next >
C/C++ Source or Header  |  1996-01-30  |  1KB  |  51 lines

  1. /*
  2. ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  3. **
  4. ** This file is distributed under the terms listed in the document
  5. ** "copying.dj", available from DJ Delorie at the address above.
  6. ** A copy of "copying.dj" should accompany this file; if not, a copy
  7. ** should be available from where this file was obtained.  This file
  8. ** may not be distributed without a verbatim copy of "copying.dj".
  9. **
  10. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  11. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. */
  13.  
  14. #ifndef fcntl_h
  15. #define fcntl_h
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. #define KERNEL
  22.  
  23.  
  24. #define O_RDONLY        0x0001
  25. #define O_WRONLY        0x0002
  26. #define O_RDWR          0x0004
  27. #define O_CREAT         0x0100
  28. #define O_TRUNC         0x0200
  29. #define O_EXCL          0x0400
  30. #define O_APPEND        0x0800
  31. #define O_TEXT          0x4000
  32. #define O_BINARY        0x8000
  33.  
  34. #define O_NOINHERIT    0x0080
  35. #define O_DENYALL    0x0010
  36. #define O_DENYWRITE    0x0020
  37. #define O_DENYREAD    0x0030
  38. #define O_DENYNONE    0x0040
  39.  
  40. extern int _fmode;
  41.  
  42. #undef KERNEL
  43.  
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47.  
  48. #include <djgppstd.h>
  49.  
  50. #endif
  51.